﻿var q6 = "#fUI/RunnerGame.img/RunnerGameUI/UI/Point/1#"
	var q1 = "#fUI/SoulUI.img/DungeonMap/icon/dungeonItem/0#"
	var h1 = "#fUI/Login.img/WorldNotice/1/5#"
	var h4 = "#fUI/Gateway.img/WorldSelect/BtDot/normal/0#"
	var h6 = "#fUI/SoulUI.img/DungeonEffect/2350012/15#"
	var h7 = "#fItem/Cash/0501.img/05010000/effect/default/0#"
	var h8 = "#fItem/Cash/0583.img/05830002/info/icon#"
	var h9 = "#fItem/Consume/0237.img/02370000/info/icon#"
	var bbb1 = "#fItem/Cash/0516.img/05160005/info/icon#"
	var bbb2 = "#fItem/Cash/0516.img/05160000/info/icon#"
	var bbb3 = "#fItem/Cash/0516.img/05160001/info/icon#"
	var ddd1 = "#fItem/Cash/0523.img/05230000/info/icon#"
	var ddd3 = "#fItem/Cash/0533.img/05330000/info/icon#"
	var ddd4 = "#fItem/Cash/0537.img/05370000/info/icon#"
	var ddd5 = "#fItem/Cash/0548.img/05480000/info/icon#"
	var ddd6 = "#fItem/Cash/0548.img/05480001/info/icon#"
	var h7 = "#fItem/Cash/0501.img/05010000/effect/default/0#"
	var s18 = "#fUI/UIWindow/AriantMatch/characterIcon/5#";
var aaa = "#fUI/UIWindow/AriantMatch/characterIcon/5#";
var yun = "#fUI/UIWindow/Quest/icon8/0#"; ////红沙漏
var yun2 = "#fUI/UIWindow/Quest/icon8/0#"; ////蓝指标
var yun8 = "#fUI/UIWindow/MonsterBook/arrowLeft/normal/0#"; ////金左指标
var yun9 = "#fUI/UIWindow/MonsterBook/arrowRight/normal/0#"; ////金右指标
var ttt = "#fUI/UIWindow/Quest/icon2/7#"; //"+ttt+"//美化1
var ttt2 = "#fUI/UIWindow/Quest/icon6/7#"; ////美化2
var ttt3 = "#fUI/UIWindow/Quest/icon3/6#"; //"+ttt3+"//美化圆
var ttt4 = "#fUI/UIWindow/Quest/icon5/1#"; //"+ttt4+"//美化New
var ttt5 = "#fUI/UIWindow/Quest/icon0#"; ////美化!
var ttt7 = "#fUI/Basic/BtHide3/mouseOver/0#"; //"+ttt6+"//美化会员
var ttt6 = "#fUI/UIWindow.img/PvP/Scroll/enabled/next2#";
var epp = "#fEffect/CharacterEff/1082312/0/0#"; //彩光
var eff = "#fCharacter/Weapon/01702523.img/48/straight/0/effect#"; //彩虹带
var eff = "#fEffect/CharacterEff/1112905/0/1#"; //
var epp = "#fEffect/CharacterEff/1082312/0/0#"; //彩光
var epp1 = "#fEffect/CharacterEff/1082312/2/0#"; //彩光1
var axx = "#fEffect/CharacterEff/1051294/0/0#"; //爱心
var xxx = "#fEffect/CharacterEff/1082565/2/0#"; //星系
var ppp = "#fEffect/CharacterEff/1112907/4/0#"; //泡炮
var epp3 = "#fEffect/CharacterEff/1112908/0/1#"; //彩光3
var axx1 = "#fEffect/CharacterEff/1062114/1/0#"; //爱心
var zs = "#fEffect/CharacterEff/1112946/2/0#"; //砖石粉
var zs1 = "#fEffect/CharacterEff/1112946/1/1#"; //砖石蓝
var dxxx = "#fEffect/CharacterEff/1102232/2/0#"; //星系
var tz = "#fEffect/CharacterEff/1082565/2/0#"; //兔子蓝
var tz1 = "#fEffect/CharacterEff/1082565/4/0#"; //兔子粉
var tz7 = "#fEffect/CharacterEff/1112900/3/1#"; //音符红
var tz8 = "#fEffect/CharacterEff/1112900/4/1#"; //音符绿
var tz88 = "#fEffect/CharacterEff/1112900/5/1#"; //音符绿!
var yun1 = "#fUI/UIWindow/Quest/icon7/10#"; ////红色圆
var tz9 = "#fEffect/CharacterEff/1112902/0/0#"; //蓝心
var tz10 = "#fEffect/CharacterEff/1112903/0/0#"; //红心
var tz11 = "#fEffect/CharacterEff/1112904/0/0#"; //彩心
var tz12 = "#fEffect/CharacterEff/1112924/0/0#"; //黄星
var tz13 = "#fEffect/CharacterEff/1112925/0/0#"; //蓝星
var tz14 = "#fEffect/CharacterEff/1112926/0/0#"; //红星
var tz15 = "#fEffect/CharacterEff/1112949/0/0#"; //花样音符
var tz16 = "#fEffect/CharacterEff/1112949/1/0#"; //花样音符
var tz17 = "#fEffect/CharacterEff/1112949/2/0#"; //花样音符
var tz18 = "#fEffect/CharacterEff/1112949/3/0#"; //花样音符
var tz19 = "#fEffect/CharacterEff/1112949/4/0#"; //花样音符
var tz20 = "#fEffect/CharacterEff/1114000/1/0#"; //红星花
var head = "#fUI/UIWindow2.img/Quest/quest_info/summary_icon/summary#\r\n";
var yun4 = "#fUI/UIWindow/Quest/reward#"; ////奖励
var 戴米安 = "#fMob/8880130.img/stand/0#";
var 闹钟 = "#fMob/8500001.img/stand/0#";
var 希纳斯 = "#fMob/8850011.img/stand/0#";
var 扎昆 = "#fMob/8800000.img/stand/0#";
var 奖励 = "#fUI/UIWindow/Quest/reward#";
var 黑水晶 = "#v4251402#";
var 五彩水晶 = "#v4251202#";
var ss1 = "#v4250802#";
var ss2 = "#v4251102#";
var ss3 = "#v4250902#";
var ss4 = "#v4251002#";
var 黄金 = "#v4011006#";
var 青铜 = "#v4011000#";
var 钢铁 = "#v4011001#";
var 祖母绿 = "#v4250002#";
var 祖母 = "#v4250702#";
var 海蓝 = "#v4250502#";
var 石榴 = "#v4250202#";
var 蛋白 = "#v4250302#";
var z13 = "#fMap/MapHelper.img/weather/5000days/1#"; //礼物红
var z14 = "#fMap/MapHelper.img/weather/5000days/5#"; //礼物红
var z15 = "#fMap/MapHelper.img/weather/5000days/3#"; //礼物红
var z16 = "#fMap/MapHelper.img/weather/5000days/2#"; //礼物红
var z17 = "#fMap/MapHelper.img/weather/5000days/2#"; //礼物红
var z18 = "#fMap/MapHelper.img/weather/2011Xmas/6#"; //礼物红
var 数字1 = "#fUI/PredictHarmony.img/predictmaritalharmony/num/1#";
var 数字2 = "#fUI/PredictHarmony.img/predictmaritalharmony/num/2#";
var 数字3 = "#fUI/PredictHarmony.img/predictmaritalharmony/num/3#";
var 数字4 = "#fUI/PredictHarmony.img/predictmaritalharmony/num/4#";
var 数字5 = "#fUI/PredictHarmony.img/predictmaritalharmony/num/5#";
var 数字6 = "#fUI/PredictHarmony.img/predictmaritalharmony/num/6#";
var Pi = "#fEffect/SetEff.img/127/backgrnd2/9";//后街男孩
var PW = "#fMap/MapHelper.img/minimap/arrowright#"; //礼物红
function start() {
	status = -1;
	action(1, 0, 0);
}

function action(mode, type, selection) {
	if (mode == -1) {
		cm.dispose();
	} else {
		if (mode == 0 && status == 0) {
			cm.dispose();
			return;
		}
		if (mode == 1)
			status++;
		else
			status--;
		if (status == 0) {
			var text ="           "+Pi+"\r\n          ";
			text += "#b#L99#"+数字1+".#bPPMS专属副本#b #L0#"+数字2+".#r挑战全服BOSS#L4#"+PW+"#k[重置挑战次数]"+"#l\r\n";
			text += "#b#L5#"+数字3+".#r单人副本任务#b #L2#"+数字4+".#r多人组队竞技#L3#"+PW+"#k[查询挑战次数]"+"#l\r\n";		
			text += "#b#L7#"+数字5+".#rPPMS乱斗副本#b #L6#"+数字6+".#r家族竞争任务#L8#"+PW+"#k[全服排名系统]"+"#l\r\n";	
			cm.sendSimple(text);
		} else if (status == 1) {
			switch (selection) {
			case 0:
				cm.dispose();
				cm.openNpc(9111008, "BOSS挑战");
				break;
			case 1:
				cm.warp(910002000);
				cm.dispose();
				break;
			case 2:
				cm.dispose();
				cm.openNpc(2140003, "组队副本");
				break;
			case 3:
				cm.sendOk(ttt + "#b以下是您所有的组队任务剩余次数\r\n\r\n" + eff + " 玩具城组队任务  #b(剩余： #r" + (10 - cm.getPQLog("玩具城组队任务")) + "/10 #b次)\r\n" + eff + " 御龙魔组队任务  #b(剩余： #r" + (10 - cm.getPQLog("御龙魔")) + "/10 #b次)\r\n" + eff + " 逃脱组队任务  #b(剩余： #r" + (10 - cm.getPQLog("逃脱")) + "/10 #b次)\r\n" + eff + " 月妙组队任务  #b(剩余： #r" + (10 - cm.getPQLog("月妙的年糕")) + "/10 #b次)\r\n" + eff + " 次元入侵组队任务  #b(剩余： #r" + (5 - cm.getPQLog("次元入侵")) + "/5 #b次)\r\n" + eff + " 废弃组队任务  #b(已进行： #r" + cm.getPQLog("废弃都市") + " #b次)\r\n" + eff + " 消灭海盗船  #b(剩余： #r" + (5 - cm.getPQLog("海盗船")) + "/5 #b次)\r\n" + eff + " 外星访客组队任务  #b(剩余： #r" + (10 - cm.getPQLog("外星访客")) + "/10 #b次)\r\n");
				cm.dispose();
				break;
			case 4:
				cm.dispose();
				// cm.openNpc(9310362, "resetBoss");
				cm.sendOk("功能暂不开放");
				break;
			case 5:
				cm.dispose();
				cm.openNpc(9310362, "个人副本");
				break;
			case 6://家族副本
				cm.dispose();
				cm.warp(102040200);
				break;
			case 7://个人乱斗
				cm.dispose();
				cm.openNpc(9070003, "个人乱斗");
				break;		
			case 8://排行榜
				cm.dispose();
				cm.openNpc(1540008, "排名");
				break;				
			case 99:
				cm.dispose();
				cm.openNpc(2400023, "zuduirenwu");
				break;
			default:
				cm.sendOk("管理员正在准备中.请期待");
				cm.dispose();
			}
		}
	}
}
